﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Perceiveit.Xml.Converters
{


    #region public class UIntXConverter : XConverter<uint>

    public class UIntXConverter : XConverter<uint>
    {
        public override uint FromString(string value)
        {
            uint i;
            if (string.IsNullOrEmpty(value) || !uint.TryParse(value, out i))
                i = 0;
            return i;
        }

        public override string ToString(uint value)
        {
            return value.ToString();
        }
    }

    #endregion

}
